<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Register</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            background-color: #e0e7ee; /* 加深的浅色背景 */
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin-top: -10%; /* 向上移动10% */
        }
        .register-container {
            background-color: white;
            padding: 40px; /* 增加内部填充 */
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            width: 400px; /* 增加宽度 */
            transition: transform 0.2s;
        }
        .register-container:hover {
            transform: scale(1.02);
        }
        h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #333;
            font-size: 24px; /* 增加字体大小 */
        }
        form {
            display: flex;
            flex-direction: column;
        }
        label {
            margin-bottom: 5px;
            color: #555; /* 增加标签颜色 */
        }
        input[type="text"],
        input[type="password"] {
            margin-bottom: 15px;
            padding: 12px; /* 增加输入框内边距 */
            border: 1px solid #ddd;
            border-radius: 4px;
            transition: border-color 0.3s;
        }
        input[type="text"]:focus,
        input[type="password"]:focus {
            border-color: #5cb85c;
            outline: none;
        }
        input[type="submit"] {
            cursor: pointer;
            background-color: #5cb85c;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 12px; /* 增加按钮内边距 */
            font-size: 16px;
            transition: background-color 0.3s, transform 0.2s;
        }
        input[type="submit"]:hover {
            background-color: #4cae4c;
            transform: translateY(-2px);
        }
        input[type="submit"]:active {
            transform: translateY(0);
        }
        a {
            display: block;
            text-align: center;
            margin-top: 15px;
            color: #337ab7;
            text-decoration: none;
            font-weight: bold;
        }
        a:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body>

    <div class="register-container">

        <h2>注册</h2>
        <form action="/register" method="post">
            <label for="username">用户名</label>
            <input type="text" name="username" id="username" placeholder="请输入用户名" required>
            <label for="password">密码</label>
            <input type="password" name="password" id="password" placeholder="请输入密码" required>
            <label for="confirm_password">确认密码</label>
            <input type="password" name="confirm_password" id="confirm_password" placeholder="再次输入密码" required>
            <input type="submit" value="注册">
            <a href="/">已有账号？登录</a>
        </form>
    </div>
</body>
</html>
